﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_Resurrection : ServerBasePacket
    {
        public S_Resurrection( L1PcInstance target, L1PcInstance use, int type )
        {
            writeC( Opcodes.S_OPCODE_RESURRECTION );
            writeD( target.getId() );
            writeC( type );
            writeD( use.getId() );
            writeD( target.getClassId() );
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override
        public String getType()
        {
            return "[S] S_Resurrection";
        }
    }
}